package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_GCM_REPLYMSG"
 *     
*/
public class CcpGcmReplymsg implements Serializable {

    /** identifier field */
    private String replyGuid;

    /** nullable persistent field */
    private String businessCode;

    /** persistent field */
    private byte[] contents;

    /** persistent field */
    private String userid;

    /** persistent field */
    private String replydate;

    /** persistent field */
    private String mainmsgGuig;

    /** nullable persistent field */
    private String msgGuid;

    /** persistent field */
    private BigDecimal attachnum;

    /** persistent field */
    private String msgcatGuid;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public CcpGcmReplymsg(String replyGuid, String businessCode, byte[] contents, String userid, String replydate, String mainmsgGuig, String msgGuid, BigDecimal attachnum, String msgcatGuid, String reserved1, String reserved2, String reserved3) {
        this.replyGuid = replyGuid;
        this.businessCode = businessCode;
        this.contents = contents;
        this.userid = userid;
        this.replydate = replydate;
        this.mainmsgGuig = mainmsgGuig;
        this.msgGuid = msgGuid;
        this.attachnum = attachnum;
        this.msgcatGuid = msgcatGuid;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public CcpGcmReplymsg() {
    }

    /** minimal constructor */
    public CcpGcmReplymsg(String replyGuid, byte[] contents, String userid, String replydate, String mainmsgGuig, BigDecimal attachnum, String msgcatGuid) {
        this.replyGuid = replyGuid;
        this.contents = contents;
        this.userid = userid;
        this.replydate = replydate;
        this.mainmsgGuig = mainmsgGuig;
        this.attachnum = attachnum;
        this.msgcatGuid = msgcatGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="REPLY_GUID"
     *         
     */
    public String getReplyGuid() {
        return this.replyGuid;
    }

    public void setReplyGuid(String replyGuid) {
        this.replyGuid = replyGuid;
    }

    /** 
     *            @hibernate.property
     *             column="BUSINESS_CODE"
     *             length="32"
     *         
     */
    public String getBusinessCode() {
        return this.businessCode;
    }

    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
    }

    /** 
     *            @hibernate.property
     *             column="CONTENTS"
     *             length="2147483647"
     *             not-null="true"
     *         
     */
    public byte[] getContents() {
        return this.contents;
    }

    public void setContents(byte[] contents) {
        this.contents = contents;
    }

    /** 
     *            @hibernate.property
     *             column="USERID"
     *             length="32"
     *             not-null="true"
     *         
     */
    public String getUserid() {
        return this.userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    /** 
     *            @hibernate.property
     *             column="REPLYDATE"
     *             length="14"
     *             not-null="true"
     *         
     */
    public String getReplydate() {
        return this.replydate;
    }

    public void setReplydate(String replydate) {
        this.replydate = replydate;
    }

    /** 
     *            @hibernate.property
     *             column="MAINMSG_GUIG"
     *             length="32"
     *             not-null="true"
     *         
     */
    public String getMainmsgGuig() {
        return this.mainmsgGuig;
    }

    public void setMainmsgGuig(String mainmsgGuig) {
        this.mainmsgGuig = mainmsgGuig;
    }

    /** 
     *            @hibernate.property
     *             column="MSG_GUID"
     *             length="32"
     *         
     */
    public String getMsgGuid() {
        return this.msgGuid;
    }

    public void setMsgGuid(String msgGuid) {
        this.msgGuid = msgGuid;
    }

    /** 
     *            @hibernate.property
     *             column="ATTACHNUM"
     *             length="38"
     *             not-null="true"
     *         
     */
    public BigDecimal getAttachnum() {
        return this.attachnum;
    }

    public void setAttachnum(BigDecimal attachnum) {
        this.attachnum = attachnum;
    }

    /** 
     *            @hibernate.property
     *             column="MSGCAT_GUID"
     *             length="32"
     *             not-null="true"
     *         
     */
    public String getMsgcatGuid() {
        return this.msgcatGuid;
    }

    public void setMsgcatGuid(String msgcatGuid) {
        this.msgcatGuid = msgcatGuid;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="50"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="50"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="100"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("replyGuid", getReplyGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpGcmReplymsg) ) return false;
        CcpGcmReplymsg castOther = (CcpGcmReplymsg) other;
        return new EqualsBuilder()
            .append(this.getReplyGuid(), castOther.getReplyGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getReplyGuid())
            .toHashCode();
    }

}
